package com.tripspins.app.bo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by joaortk on 30/12/13.
 */
public class Contact implements Parcelable {

    private String name;
    private String picturePath;
    private String pictureThumbnailPath;
    private String phoneNumber;
    private String contactSource;
    private String contactIdOnSource;
    private String email;

    public Contact()
    {

    }


    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPictureThumbnailPath(String pictureThumbnailPath) {
        this.pictureThumbnailPath = pictureThumbnailPath;
    }

    public String getPictureThumbnailPath() {
        return pictureThumbnailPath;
    }


    public String getContactSource() {
        return contactSource;
    }

    public void setContactSource(String contactSource) {
        this.contactSource = contactSource;
    }
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public String getContactIdOnSource() {
        return contactIdOnSource;
    }

    public void setContactIdOnSource(String contactIdOnSource) {
        this.contactIdOnSource = contactIdOnSource;
    }

    //Begin Parcelable methods
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(name);
        parcel.writeString(picturePath);
        parcel.writeString(pictureThumbnailPath);
        parcel.writeString(phoneNumber);
        parcel.writeString(contactSource);
        parcel.writeString(contactIdOnSource);
    }

    public Contact(Parcel parcel) {
        setName(parcel.readString());
        setPicturePath(parcel.readString());
        setPictureThumbnailPath(parcel.readString());
        setPhoneNumber(parcel.readString());
        setContactSource(parcel.readString());
        setContactIdOnSource(parcel.readString());
    }


    public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        public Contact createFromParcel(Parcel parcel) {
            return new Contact(parcel);
        }

        public Contact[] newArray(int size) {
            return new Contact[size];
        }
    };


    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }
}
